package main

import "fmt"

/**
 * @author: guangcheng
 * @date:   2020/11/11 17:55
 * @version  V1.0
 * @description:
 *
 */
func main() {
	//res= 20
	//n2= 10
	//n1= 10
	//res= 20
	res := sum(10, 10)
	fmt.Println("res=", res)
}

func sum(n1 int, n2 int) int {
	defer fmt.Println("n1=", n1)
	defer fmt.Println("n2=", n2)

	res := n1 + n2
	fmt.Println("res=", res)
	return res
}
